import request from '../util/request.js'
const baseUrl = "agent/order/"

export function getAgentOrderList(data) {
	return request.get(baseUrl + "list", data, {
		noAuth: false
	})
}


export function upAgentOrder(data) {
	return request.get(baseUrl + "up", data, {
		noAuth: false
	})
}


export function adoptAgentOrder(data) {
	return request.get(baseUrl + "adopt", data, {
		noAuth: false
	})
}


export function getExpressList() {
	return request.get(baseUrl + "express", {}, {
		noAuth: false
	})
}

export function getCartInfoList(data) {
	return request.get(baseUrl + "cart/info/list", data, {
		noAuth: false
	})
}

export function deliverOrder(data) {
	return request.post(baseUrl + "deliver", data, {
		noAuth: false
	})
}


export function getAgentOrderCount(data) {
	return request.get(baseUrl + "order/count", data, {
		noAuth: false
	})
}


export function autoStockAgentOrder(data) {
	return request.get(baseUrl + "auto/stock", data, {
		noAuth: false
	})
}
